import java.util.concurrent.CountDownLatch;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:龙宝
 * Date:2023-12-03
 * Time:9:40
 */
public class Thread15 {
    public static void main(String[] args) throws InterruptedException {
        CountDownLatch countDownLatch = new CountDownLatch(10);
        for(int i = 0;i<10;i++) {
            Thread t = new Thread(()-> {
                System.out.println(1111111111);
                countDownLatch.countDown();
            });
            t.start();
        }
        countDownLatch.await();
        System.out.println("结束");
    }
}
